package com.yxy.model;


import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import java.util.Date;
import java.math.BigDecimal;
import java.util.Set;

import javax.persistence.*;


@Data
@Entity
@Table(name = "sys_login_info",schema = "")
public class SysLoginInfo {

  //ID
  @Id
  @KeySql(useGeneratedKeys = true,sql = "SELECT @@IDENTITY",order = ORDER.AFTER)
  @Column(name = "id")
  private Long id;

  //租户ID
  @Column(name = "tenant_id")
  private Long tenantId;

  //账号名称
  @Column(name = "user_name")
  private String userName;

  //ip地址
  @Column(name = "ip_address")
  private String ipAddress;

  // 0 未操作 1已审核  3 已删除 4 已驳回
  @Column(name = "status")
  private Long status;

  //描述(保留字段)
  @Column(name = "misc")
  private String misc;

  //创建者id
  @Column(name = "create_user_id")
  private Long createUserId;

  //创建人姓名
  @Column(name = "create_user_name")
  private String createUserName;

  //创建时间
  @Column(name = "create_date")
  private Date createDate;

  //修改人id
  @Column(name = "update_user_id")
  private Long updateUserId;

  //修改人姓名
  @Column(name = "update_user_name")
  private String updateUserName;

  //更新时间
  @Column(name = "update_date")
  private Date updateDate;


  @Transient
  private Set<Long> tenantIdList;

  //第几页，从1开始
  @Transient
  private int pageNumber;

  //每页的条数
  @Transient
  private int pageSize;


  @Transient
  private int loginCount;



}
